package model.server;

public class Request {
	private String searchString;

	private String category;

	private String province;

	private String county;

	public Request(String requestString) {
		searchString = requestString;
		category = "0";
		province = "";
		county = "";
		try {
			String[] parts = requestString.split(":");
			this.searchString = parts[0];
			this.category = parts[1];
			this.province = parts[2];
			this.county = parts[3];
		} catch (IndexOutOfBoundsException e) {
		}
	}

	public String searchString() {
		return searchString;
	}

	public String category() {
		return category;
	}

	public String province() {
		return province;
	}

	public String county() {
		return county;
	}

}